<template>
    <el-card shadow="always">
        <template #header>
            <div>
                <span>商品分类</span>
            </div>
        </template>
        <!-- 
            element-ui 树形表格构建必须定义 row-key 属性 => 采用静态绑定 => 取值为树形数据中每条数据都存在的唯一取值的属性名
                       同时必须提供对应的树形表格子表格数据的取值属性名 => :tree-props="{ children: 'children'  }"
         -->
        <!-- <el-table :data="cats" border stripe row-key="cat_id">
            <el-table-column type="index" width="60" label="序号"></el-table-column>
            <el-table-column label="名称" prop="cat_name"></el-table-column>
            <el-table-column label="状态"></el-table-column>
            <el-table-column label="排序"></el-table-column>
            <el-table-column label="操作"></el-table-column>
        </el-table> -->
        <vx-table :data="cats" border="full" :tree-config="treeConfig" :seq-config="{ seqMethod }">
            <vx-column type="seq" title="序号" width="60"></vx-column>
            <vx-column title="名称" field="cat_name" tree-node></vx-column>
            <vx-column title="状态"></vx-column>
            <vx-column title="排序"></vx-column>
            <vx-column title="操作"></vx-column>
        </vx-table>
    </el-card>
</template>

<script>
import 'vxe-table/lib/style.css'
// vxe-table
import { VxeTable,Column } from "vxe-table";

export default {
    components: {
        VxTable:VxeTable,
        VxColumn:Column
    },
    data() {
        return {
            treeConfig:{
                rowField: 'cat_id',
                // vxe-table 组件的加载会自动完成图片的css引入，如果需要使用图标的组件方式，必须通过组件注册完成
                iconOpen: 'vxe-icon-square-minus',
                iconClose: 'vxe-icon-square-plus'
            },
            cats: [
                {
                    "cat_id": 1,
                    "cat_name": "大家电",
                    "cat_pid": 0,
                    "cat_level": 0,
                    "cat_deleted": false,
                    "children": [
                        {
                            "cat_id": 3,
                            "cat_name": "电视",
                            "cat_pid": 1,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 6,
                                    "cat_name": "曲面电视",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 7,
                                    "cat_name": "海信",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 8,
                                    "cat_name": "夏普",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 9,
                                    "cat_name": "创维",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 10,
                                    "cat_name": "TCL",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 11,
                                    "cat_name": "PPTV",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 12,
                                    "cat_name": "小米",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 13,
                                    "cat_name": "长虹",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 14,
                                    "cat_name": "康佳",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 15,
                                    "cat_name": "三星",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 16,
                                    "cat_name": "飞利浦",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 17,
                                    "cat_name": "索尼",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 18,
                                    "cat_name": "先锋",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 19,
                                    "cat_name": "家庭影院",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 20,
                                    "cat_name": "音响",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 21,
                                    "cat_name": "盒子",
                                    "cat_pid": 3,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 4,
                            "cat_name": "空调",
                            "cat_pid": 1,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 23,
                                    "cat_name": "变频空调",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 24,
                                    "cat_name": "立柜空调",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 25,
                                    "cat_name": "挂壁空调",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 27,
                                    "cat_name": "中央空调",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 28,
                                    "cat_name": "移动空调",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 29,
                                    "cat_name": "海尔",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 30,
                                    "cat_name": "三菱重工",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 31,
                                    "cat_name": "志高",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 32,
                                    "cat_name": "奥克斯",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 33,
                                    "cat_name": "长虹",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 34,
                                    "cat_name": "科龙",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 35,
                                    "cat_name": "海信",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 36,
                                    "cat_name": "惠而浦",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 37,
                                    "cat_name": "空调清洗",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 38,
                                    "cat_name": "空调维修",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 39,
                                    "cat_name": "空调安装",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 40,
                                    "cat_name": "空调回收",
                                    "cat_pid": 4,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 26,
                            "cat_name": "洗衣机",
                            "cat_pid": 1,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 42,
                                    "cat_name": "洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 43,
                                    "cat_name": "滚筒洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 44,
                                    "cat_name": "波轮洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 46,
                                    "cat_name": "大容量洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 47,
                                    "cat_name": "迷你洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 48,
                                    "cat_name": "双缸洗衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 49,
                                    "cat_name": "干衣机",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 50,
                                    "cat_name": "洗衣机服务",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 51,
                                    "cat_name": "西门子",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 53,
                                    "cat_name": "海尔",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 54,
                                    "cat_name": "小天鹅",
                                    "cat_pid": 26,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 45,
                            "cat_name": "冰箱",
                            "cat_pid": 1,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 56,
                                    "cat_name": "对开门冰箱",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 58,
                                    "cat_name": "多门冰箱",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 59,
                                    "cat_name": "三门冰箱",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 60,
                                    "cat_name": "十字对开门",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 61,
                                    "cat_name": "双门冰箱",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 62,
                                    "cat_name": "冷柜/冰吧",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 63,
                                    "cat_name": "商用冷柜",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 65,
                                    "cat_name": "海尔",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 66,
                                    "cat_name": "西门子",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 67,
                                    "cat_name": "容声",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 68,
                                    "cat_name": "美菱",
                                    "cat_pid": 45,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        }
                    ]
                },
                {
                    "cat_id": 52,
                    "cat_name": "热门推荐",
                    "cat_pid": 0,
                    "cat_level": 0,
                    "cat_deleted": false,
                    "children": [
                        {
                            "cat_id": 64,
                            "cat_name": "圣诞狂欢",
                            "cat_pid": 52,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 73,
                                    "cat_name": "护肤套装",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 74,
                                    "cat_name": "面膜",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 76,
                                    "cat_name": "巧克力",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 77,
                                    "cat_name": "儿童玩具",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 78,
                                    "cat_name": "童装童鞋",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 79,
                                    "cat_name": "平板电脑",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 80,
                                    "cat_name": "笔记本",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 81,
                                    "cat_name": "苹果手机",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 82,
                                    "cat_name": "小米手机",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 83,
                                    "cat_name": "数码相机",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 84,
                                    "cat_name": "耳机耳麦",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 85,
                                    "cat_name": "挂机空调",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 86,
                                    "cat_name": "空气净化器",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 87,
                                    "cat_name": "洗衣机",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 88,
                                    "cat_name": "4K超高清",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 89,
                                    "cat_name": "洗碗机",
                                    "cat_pid": 64,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 1008,
                            "cat_name": "冲锋衣",
                            "cat_pid": 52,
                            "cat_level": 2,
                            "cat_deleted": false
                        }
                    ]
                },
                {
                    "cat_id": 70,
                    "cat_name": "海外购",
                    "cat_pid": 0,
                    "cat_level": 0,
                    "cat_deleted": false,
                    "children": [
                        {
                            "cat_id": 75,
                            "cat_name": "国际名牌",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 92,
                                    "cat_name": "swisse",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 94,
                                    "cat_name": "巴黎水",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 95,
                                    "cat_name": "爱他美",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 97,
                                    "cat_name": "花王",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 98,
                                    "cat_name": "戴森",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 99,
                                    "cat_name": "ReFa",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 100,
                                    "cat_name": "MK",
                                    "cat_pid": 75,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 93,
                            "cat_name": "母婴儿童",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 102,
                                    "cat_name": "纸尿裤",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 103,
                                    "cat_name": "营养辅食",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 104,
                                    "cat_name": "婴儿用品",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 105,
                                    "cat_name": "婴儿洗护",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 106,
                                    "cat_name": "童车童床",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 107,
                                    "cat_name": "儿童玩具",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 108,
                                    "cat_name": "童装童鞋",
                                    "cat_pid": 93,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 96,
                            "cat_name": "美妆",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 110,
                                    "cat_name": "面膜",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 111,
                                    "cat_name": "口红",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 112,
                                    "cat_name": "彩妆",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 114,
                                    "cat_name": "护肤套装",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 116,
                                    "cat_name": "香水香氛",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 117,
                                    "cat_name": "洁面仪",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 118,
                                    "cat_name": "卸妆",
                                    "cat_pid": 96,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 113,
                            "cat_name": "个护",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 120,
                                    "cat_name": "美发护发",
                                    "cat_pid": 113,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 121,
                                    "cat_name": "美甲",
                                    "cat_pid": 113,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 122,
                                    "cat_name": "口腔护理",
                                    "cat_pid": 113,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 123,
                                    "cat_name": "女性护理",
                                    "cat_pid": 113,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 115,
                            "cat_name": "营养保健",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 125,
                                    "cat_name": "提高免疫",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 126,
                                    "cat_name": "维生素/矿物质",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 127,
                                    "cat_name": "美容养颜",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 129,
                                    "cat_name": "调节三高",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 130,
                                    "cat_name": "减肥瘦身",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 131,
                                    "cat_name": "胶原蛋白",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 132,
                                    "cat_name": "补肾强身",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 134,
                                    "cat_name": "养生茶饮",
                                    "cat_pid": 115,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 128,
                            "cat_name": "食品",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 136,
                                    "cat_name": "牛奶乳品",
                                    "cat_pid": 128,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 137,
                                    "cat_name": "方便速食",
                                    "cat_pid": 128,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 138,
                                    "cat_name": "进口酒水",
                                    "cat_pid": 128,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 139,
                                    "cat_name": "进口粮油",
                                    "cat_pid": 128,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 140,
                                    "cat_name": "厨房调料",
                                    "cat_pid": 128,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 133,
                            "cat_name": "数码家电",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 142,
                                    "cat_name": "平板电脑",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 143,
                                    "cat_name": "笔记本电脑",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 144,
                                    "cat_name": "手机配件",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 145,
                                    "cat_name": "音箱音响",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 146,
                                    "cat_name": "摄影摄像",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 147,
                                    "cat_name": "智能设备",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 148,
                                    "cat_name": "剃须刀",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 149,
                                    "cat_name": "吸尘器",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 150,
                                    "cat_name": "电饭煲",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 152,
                                    "cat_name": "电吹风",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 153,
                                    "cat_name": "咖啡机",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 154,
                                    "cat_name": "空气净化器",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 155,
                                    "cat_name": "美容仪",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 156,
                                    "cat_name": "电动牙刷",
                                    "cat_pid": 133,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 151,
                            "cat_name": "服饰箱包",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 159,
                                    "cat_name": "潮流女包",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 160,
                                    "cat_name": "钟表眼镜",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 161,
                                    "cat_name": "男装",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 162,
                                    "cat_name": "女装",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 163,
                                    "cat_name": "配饰",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 164,
                                    "cat_name": "男鞋",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 165,
                                    "cat_name": "女鞋",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 166,
                                    "cat_name": "运动鞋",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 167,
                                    "cat_name": "功能箱包",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 168,
                                    "cat_name": "珠宝饰品",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 169,
                                    "cat_name": "内衣",
                                    "cat_pid": 151,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 157,
                            "cat_name": "家居日用",
                            "cat_pid": 70,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 171,
                                    "cat_name": "生活日用",
                                    "cat_pid": 157,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 175,
                                    "cat_name": "餐厨用具",
                                    "cat_pid": 157,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 177,
                                    "cat_name": "清洁用品",
                                    "cat_pid": 157,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 179,
                                    "cat_name": "安全避孕",
                                    "cat_pid": 157,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 180,
                                    "cat_name": "情趣用品",
                                    "cat_pid": 157,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        }
                    ]
                },
                {
                    "cat_id": 172,
                    "cat_name": "苏宁房产",
                    "cat_pid": 0,
                    "cat_level": 0,
                    "cat_deleted": false,
                    "children": [
                        {
                            "cat_id": 173,
                            "cat_name": "苏宁房产",
                            "cat_pid": 172,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 183,
                                    "cat_name": "恒大旅游",
                                    "cat_pid": 173,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 181,
                            "cat_name": "苏宁置业",
                            "cat_pid": 172,
                            "cat_level": 2,
                            "cat_deleted": false
                        }
                    ]
                },
                {
                    "cat_id": 174,
                    "cat_name": "手机相机",
                    "cat_pid": 0,
                    "cat_level": 0,
                    "cat_deleted": false,
                    "children": [
                        {
                            "cat_id": 178,
                            "cat_name": "大牌推荐",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 187,
                                    "cat_name": "荣耀",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 188,
                                    "cat_name": "华为",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 189,
                                    "cat_name": "三星",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 190,
                                    "cat_name": "魅族",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 191,
                                    "cat_name": "OPPO",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 192,
                                    "cat_name": "vivo",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 193,
                                    "cat_name": "努比亚",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 194,
                                    "cat_name": "美图",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 195,
                                    "cat_name": "诺基亚",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 196,
                                    "cat_name": "飞利浦",
                                    "cat_pid": 178,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 185,
                            "cat_name": "搞机达人",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 198,
                                    "cat_name": "拍照手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 200,
                                    "cat_name": "游戏手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 201,
                                    "cat_name": "好评过万",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 202,
                                    "cat_name": "全面屏手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 203,
                                    "cat_name": "大屏手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 204,
                                    "cat_name": "老人机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 205,
                                    "cat_name": "长续航手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 206,
                                    "cat_name": "指纹手机",
                                    "cat_pid": 185,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 199,
                            "cat_name": "手机配件",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 209,
                                    "cat_name": "移动电源",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 210,
                                    "cat_name": "苹果周边",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 212,
                                    "cat_name": "手机耳机",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 213,
                                    "cat_name": "充电器",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 214,
                                    "cat_name": "手机膜",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 215,
                                    "cat_name": "数据线",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 216,
                                    "cat_name": "手机存储卡",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 217,
                                    "cat_name": "手机壳",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 218,
                                    "cat_name": "自拍杆",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 219,
                                    "cat_name": "手机支架",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 220,
                                    "cat_name": "手机U盘",
                                    "cat_pid": 199,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 207,
                            "cat_name": "手机服务",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 222,
                                    "cat_name": "手机维修",
                                    "cat_pid": 207,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 224,
                                    "cat_name": "二手优品",
                                    "cat_pid": 207,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 211,
                            "cat_name": "运营商",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 226,
                                    "cat_name": "话费充值",
                                    "cat_pid": 211,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 227,
                                    "cat_name": "流量订购",
                                    "cat_pid": 211,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 228,
                                    "cat_name": "苏宁网厅",
                                    "cat_pid": 211,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 229,
                                    "cat_name": "超值靓号",
                                    "cat_pid": 211,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 223,
                            "cat_name": "摄影摄像",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 231,
                                    "cat_name": "微单相机",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 232,
                                    "cat_name": "数码相机",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 233,
                                    "cat_name": "摄像机",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 234,
                                    "cat_name": "航拍无人机",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 235,
                                    "cat_name": "镜头",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 236,
                                    "cat_name": "拍立得",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 237,
                                    "cat_name": "运动相机",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 238,
                                    "cat_name": "佳能",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 239,
                                    "cat_name": "尼康",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 240,
                                    "cat_name": "索尼",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 241,
                                    "cat_name": "富士",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 242,
                                    "cat_name": "JVC",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 243,
                                    "cat_name": "宾得",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 244,
                                    "cat_name": "奥林巴斯",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 245,
                                    "cat_name": "柯达",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 247,
                                    "cat_name": "徕卡",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 248,
                                    "cat_name": "松下",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 249,
                                    "cat_name": "喜爱",
                                    "cat_pid": 223,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        },
                        {
                            "cat_id": 246,
                            "cat_name": "相机配件",
                            "cat_pid": 174,
                            "cat_level": 1,
                            "cat_deleted": false,
                            "children": [
                                {
                                    "cat_id": 251,
                                    "cat_name": "三脚架",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 252,
                                    "cat_name": "数据线",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 253,
                                    "cat_name": "滤镜",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 254,
                                    "cat_name": "相机存储卡",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 255,
                                    "cat_name": "闪光灯",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 256,
                                    "cat_name": "三星",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 257,
                                    "cat_name": "影棚器材",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 258,
                                    "cat_name": "国家地理",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 259,
                                    "cat_name": "腾龙",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 260,
                                    "cat_name": "适马",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 261,
                                    "cat_name": "英特迈",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 262,
                                    "cat_name": "品胜",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 263,
                                    "cat_name": "百诺",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 264,
                                    "cat_name": "金士顿",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 265,
                                    "cat_name": "闪迪",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 266,
                                    "cat_name": "肯高",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 267,
                                    "cat_name": "曼富图",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 268,
                                    "cat_name": "卡色",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 269,
                                    "cat_name": "神牛",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 272,
                                    "cat_name": "思锐",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 274,
                                    "cat_name": "施耐德",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 275,
                                    "cat_name": "金贝",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 276,
                                    "cat_name": "飞毛腿",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 277,
                                    "cat_name": "耐司",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 278,
                                    "cat_name": "沣标",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 279,
                                    "cat_name": "迪比科",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                },
                                {
                                    "cat_id": 280,
                                    "cat_name": "斯丹德",
                                    "cat_pid": 246,
                                    "cat_level": 2,
                                    "cat_deleted": false
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    },
    methods: {
        seqMethod(row) {
            // console.log(row);
            if(row.level==0){
                return row.seq
            }
        }
    },
}
</script>

<style lang="scss" scoped></style>